package com.cwt_taxi_xa.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.cwt_taxi_xa.protocol.DDUtil;
import com.cwt_taxi_xa.util.AppLog;

/**
 * Created by ZQX on 2020/3/23 0023 16:22
 */
public class DIDAReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        int status = intent.getIntExtra("status", -1);
        if(status!=-1){
            AppLog.savelog("嘀嗒控制顶灯："+status);
            DDUtil.sendText2TT(status);
        }
    }
}
